package com.wangshouyu.mp.pay.v3.common.enums;

/**
 * @author 王守钰
 * @date 2020年12月20日 10:39
 * @description 交易状态
 */
public enum TradeState {

    /**
     * 交易状态
     */
    SUCCESS("SUCCESS","支付成功"),
    REFUND("REFUND","转入退款"),
    NOTPAY("NOTPAY","未支付"),
    CLOSED("CLOSED","已关闭"),
    REVOKED("REVOKED","已撤销（付款码支付）"),
    USERPAYING("USERPAYING","用户支付中（付款码支付）"),
    PAYERROR("PAYERROR","支付失败(其他原因，如银行返回失败)")
    ;

    private String state;

    private String description;

    TradeState(String state, String description) {
        this.state = state;
        this.description = description;
    }

    public String getState() {
        return state;
    }

    public String getDescription() {
        return description;
    }
}
